#ifndef MYBUTTON_H
#define MYBUTTON_H

#include <QPushButton>
struct node_data
{
    int key;  //唯一键值
    int type;  //数据点类型
    //bool used;  //是否有效，有几个点只是为了好看，没有实际设备
    //union val_t val;
};

class MyButton : public QPushButton
{
    Q_OBJECT
public:
    explicit MyButton(QWidget *parent = 0);

    struct node_data node;

signals:

public slots:
};

#endif // MYBUTTON_H
